import { request } from 'umi';

export async function getAnnouncement(params) {
  return request('/api/da/getgonggaobycate', {
    method: 'GET',
    params,
  });
}

export async function getPublicOpinion() {
  return request('/api/da/aguYuqing', {
    method: 'GET',
  });
}

export async function getyqStatistic() {
  return request('/api/da/yqStatistic', {
    method: 'GET',
  });
}
export async function getyjStatistic() {
  return request('/api/da/yjStatistic', {
    method: 'GET',
  });
}
export async function getYqByWord(params) {
  return request('/api/da/getyqbyword', {
    method: 'GET',
    params,
  });
}
